package com.alex.wechat.component.codemgr.service;

import java.io.Serializable;

import org.jeecgframework.core.common.service.CommonService;

import com.alex.wechat.component.codemgr.entity.WxCodeUploadMgrEntity;

public interface WxCodeUploadMgrServiceI extends CommonService {

  public void delete(WxCodeUploadMgrEntity entity) throws Exception;

  public Serializable save(WxCodeUploadMgrEntity entity) throws Exception;

  public void saveOrUpdate(WxCodeUploadMgrEntity entity) throws Exception;

  /**
   * 更新代码审核状态
   * 
   * @param originId
   * @param auditSuccess
   *          是否审核成功
   * @param reason
   *          审核失败时的消息，成功时忽略
   * @throws Exception
   */
  public void updateByAuditNotification(String originId, boolean auditSuccess, String reason)
      throws Exception;

}
